package homeWorkDay05;

/**
 * 匿名内部类创建线程
 */
public class text3 {
    public static void main(String[] args) {
        Thread t =new Thread(){
            public void run(){
                for (int i = 0; i < 1000; i++) {
                    System.out.println("艹");
                }
            }
        };
        Runnable r =new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i <1000 ; i++) {
                    System.out.println("F");
                }
            }
        };
        Thread t2 =new Thread(r);
        t.start();
        t2.start();

    }
}
